package org.itboys.core.entity.mysql.coupon.record;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;

import java.math.BigDecimal;

/**
*@Author: jiaqilei
*@Date: 17:38 2018/12/10
*@Discription:优惠券领取
*/
@Data
public class SundayMemberCoupon extends BaseMongoEntity{
    /**用户id*/
    private Long memberId;
    /**优惠券id*/
    private Long couponId;
    /**优惠券类型*/
    private Integer type;
    /**状态 0：未使用，1：已使用*/
    private Integer used;
    /**使用时间*/
    private String useDate;
    /**优惠金额*/
    private BigDecimal money;
    /**使用人*/
    private String memberName;
    /**用户手机号*/
    private String mobile;

    public SundayMemberCoupon() {
    }

    public SundayMemberCoupon(Long memberId, Long couponId, Integer type, Integer used, BigDecimal money, String memberName, String mobile) {
        this.memberId = memberId;
        this.couponId = couponId;
        this.type = type;
        this.used = used;
        this.money = money;
        this.memberName = memberName;
        this.mobile = mobile;
    }
}